import Vue from 'vue'
import Router from 'vue-router'
import login from '../components/Login.vue'
import main from '../components/Main.vue'
import message from '../components/Message.vue'
import test from '../components/Test.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/main',
      name: 'main',
      component: main
    },
    {
      path: '/test',
      name: 'test',
      component: test
    }, {
      path: '/message/:uid',
      name: 'message',
      component: message
    }, {
      path: '/',
      redirect: '/main'
    }
  ]
})
